package com.ms.dao.impl;

import com.ms.dao.UserDao;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl implements UserDao {
    @Override
    public void query() {
        try {
            System.out.println("thread :" +Thread.currentThread()+",去查数据库了。。。，这是个耗时的操作");
            Thread.sleep(1000);
            System.out.println("thread :" +Thread.currentThread()+",从数据库得到数据了");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
